<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/common.css" type="text/css" />
<title>Aprobar Evento</title>
</head>
<body>
	<div class="header"><jsp:include page="include/header.jsp" /></div>
	<div class="contenedorprincipal">
		<div class="clear"></div>
		<div class="userinfo">
			<jsp:include page="include/userinfo.jsp" />
		</div>

		<hr>

		<div class="clear"></div>
		<div class="menu">
			<jsp:include page="include/menu.jsp" />
		</div>

		<div class="contenido">

			<form method="post">
				<h1>Aprobar Eventos</h1>

				<!-- div>
					<label for="id_evento">ID</label><input type="text"
						name="id_evento" id="id_evento" placeholder="ID" />
				</div>
				<div class="clear"></div>

				<div>
					<input type="submit" value="BUSCAR" class="submit" /> <input
						type="reset" value="LIMPIAR" class="submit" />
				</div>

				<div class="clear"></div-->

				<div>
					<div id="error" class="error" ${requestScope.error != null?"style='display:block'":""}>${requestScope.error}</div>
					<div class="clear"></div>	
					<div id="success" class="success" ${requestScope.success != null?"style='display:block'":""}>${requestScope.success}</div>
					<div class="clear"></div>	
				</div>
				
				<div class="tablaresultadobusqueda">
					<fieldset>
						<legend>Resultados</legend>

						<img src="images/buscar_icon.png" width="15px" height="15px" />
						Ver

						<table cellpadding="0" border="0" cellspacing="0">
							<thead>
								<tr class="trheader">
									<th colspan="5" class="tabletop"><div></div></th>
								</tr>
								<tr>
									<th class="headertabla">Evento</th>
									<th class="headertabla">Fecha</th>
									<th class="headertabla">Equipo local</th>
									<th class="headertabla">Equipo visitante</th>
									<th class="headertabla accionestabla" class="accionestabla">Aprobar</th>
								</tr>
							</thead>
							<tbody>
								<c:choose>
									<c:when test="${fn:length(requestScope.eventos) == 0}">
										<tr>
											<td colspan="5">No hay eventos para aprobar.</td>
										</tr>
									</c:when>
									<c:otherwise>
										<c:forEach items="${requestScope.eventos}" var="e">
											<tr>
												
												<td>${e.descripcion_evento}</td>
												<td><fmt:formatDate value="${e.fecha_evento}" pattern="yyyy/MM/dd HH:MM"/></td>
												<td>${e.equipoLocal.nombre_equipo}</td>
												<td>${e.equipoVisitante.nombre_equipo}</td>
												<td>
													<a href="phonella?pagina=7&id_evento=${e.id_evento}" class="editartabla"
														title="Ver/Editar"> <img src="images/buscar_icon.png"
															width="20px" height="20px" />
													</a>
												</td>
												
											</tr>
										</c:forEach>
									</c:otherwise>
								</c:choose>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="5" class="tablebottom"><div></div></td>
								</tr>
							</tfoot>
						</table>
					</fieldset>
				</div>
			</form>
		</div>
	</div>

</body>
</html>